<template>
    <div>
        <ul>
            <!-- <li v-for="(item, index) in dataList" :key="index">{{ item }}</li> -->
            <TabbarItem v-for="(item, index) in dataList" :key="index" :mydata="item"></TabbarItem>
        </ul>
    </div>
</template>

<script>
import TabbarItem from './TabbarItem.vue';

export default {
    components: {
        TabbarItem
    },
    data() {
        return {
            dataList: ["首页", "列表", "我的"]
        }
    },
}
</script>

<style scoped>
ul {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
}

li {
    flex: 1;
    text-align: center;
    border: 1px solid greenyellow;
}
</style>